	footer.init();
	header.init('待收益');
	
	app.ajax(
		'/Member/Shop/stay_list',
		null,function(res){
			if(res.code == 200){
				app.tpl($('.waitprofit'),'tpl-waitprofit',res);
			}else{
				layer.msg('网络繁忙，请稍候再试');
			}
		});
window.onload = function(){
	setTimeout(function(){
		var swiper = new Swiper('.swiper-container', {
	        slidesPerView: 4,
	        paginationClickable: true,
	        spaceBetween: 30
   		 });
	},2000);
	
	$('body').on('click','.view .wuliu',function(){
		var ids = $(this).attr('data-orderId');
		var kname =$(this).attr('data-kd');
		app.open('shop.viewLogistic.html','shop_viewLogistic',{id:ids,kdn:kname},window.location.href,document.body.scrollTop);
	});

	$('body').on('click','.view .order',function(){
		var order_id = $(this).attr('data-orderId');
		var kname = '';
		if($(this).parent().find('.wuliu').attr('data-kd')){
			kname = $(this).parent().find('.wuliu').attr('data-kd');
		}
		app.open('shop.profiting.detail.html','shop_pro_detail',{orderid : order_id,kdn :kname},window.location.href,document.body.scrollTop);
	});
	
};
